package com.yztc.hrmgr.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import com.yztc.hrmgr.pojo.Admin;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminMapper {
    int insert(@Param("pojo") Admin pojo);

    int insertSelective(@Param("pojo") Admin pojo);

    int insertList(@Param("pojos") List<Admin> pojo);

    int update(@Param("pojo") Admin pojo);

    List<Admin> findAll();

    Admin findByAdminName(@Param("adminName")String adminName);


}
